Fix derivation test build and UnmarshalEspressoTransaction Panics#397
Fix derivation test build and UnmarshalEspressoTransaction Panics#397shenkeyao merged 4 commits intocelo-integration-rebase-16.2from
Conversation
|
Claude finished @shenkeyao's task in 1m 14s —— View job Code Review: Fix derivation test build and UnmarshalEspressoTransaction Panics
Overall: This PR looks good. The changes are small, focused, and correct. A few observations:
The guard
The added
Good test cases covering You might also consider adding an edge case for |
There was a problem hiding this comment.
Code Review
This pull request introduces a length check in UnmarshalEspressoTransaction to prevent potential panics when processing short transaction data. It also includes a corresponding unit test to verify this behavior and updates a test call to txmgr.MakeSidecar to match a signature change. I have no feedback to provide.
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
github.com/ethereum-optimism/optimism/op-node/rollup/derive |
@philippecamacho The test should pass now! I committed Gemini's review suggestion directly, which caused the previous failure. |
Yes, the test is passing now. |
* Fix unmarshal panic * Fix the build and add a test * Update op-node/rollup/derive/espresso_batch_test.go Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> * Fix syntax --------- Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Closes https://app.asana.com/1/1208976916964769/project/1209976130071762/task/1213948846870077?focus=true.
Closes https://app.asana.com/1/1208976916964769/project/1209976130071762/task/1213749992420791?focus=true.
This PR:
op-node/rollup/derive.How to test this PR:
go test -run '^TestUnmarshalEspressoTransactionTooShort$' ./op-node/rollup/derive/and verify the test passes.